package study.member.sungil.oop1;

import java.util.HashMap;
import java.util.Map;

public class PhoneTest {
	
	public static void main(String[] args) {
		Phone phone = new Phone();
		PhoneTest pt = new PhoneTest();
		phone.call("010993993");
		phone.called("010993993");
	}
	
	public void addAddressTest(Phone phone){
		Map<String , String> m = new HashMap<String , String>();
		Map<String , String> m2 = new HashMap<String , String>();
		Map<String , String> m3 = new HashMap<String , String>();
		Map<String , String> m4 = new HashMap<String , String>();
		m.put("name", "choi sun gil");
		m.put("phone_number", "010 0000 0000");
		m2.put("name", "hyunjung");
		m2.put("phone_number", "010 1111 2222");
		m3.put("name", "jin ju");
		m3.put("phone_number", "010 3333 4444");
		m4.put("name", "taehyun");
		m4.put("phone_number", "010 1234 1515");
		phone.addAddress(m);
		phone.addAddress(m2);
		phone.addAddress(m3);
		phone.addAddress(m4);
		phone.displayPhoneBook();
	}
	
	public void setChargeRateTest(Phone phone){
		int chargeRate = phone.getChargeRate();
		System.out.println("현재 " + chargeRate + " %충전 상태입니다.");
		int addChargeRate = 1;
		phone.setChargeRate(addChargeRate);
		phone.setChargeRate(addChargeRate);
		++addChargeRate;
		phone.setChargeRate(addChargeRate);
		phone.setChargeRate(addChargeRate);
		++addChargeRate;
		++addChargeRate;
		++addChargeRate;
		++addChargeRate;
		phone.setChargeRate(addChargeRate);
		phone.setChargeRate(addChargeRate);
		phone.setChargeRate(addChargeRate);
		phone.setChargeRate(addChargeRate);
		++addChargeRate;
		++addChargeRate;
		++addChargeRate;
		++addChargeRate;
		++addChargeRate;
		++addChargeRate;
		++addChargeRate;
		++addChargeRate;
		phone.setChargeRate(addChargeRate);
		phone.setChargeRate(addChargeRate);
		phone.setChargeRate(addChargeRate);
		phone.setChargeRate(addChargeRate);
		++addChargeRate;
		++addChargeRate;
		++addChargeRate;
		++addChargeRate;
		++addChargeRate;
		phone.setChargeRate(addChargeRate);
		phone.setChargeRate(addChargeRate);
		phone.setChargeRate(addChargeRate);
		phone.setChargeRate(addChargeRate);
	}

}
